<template>
  <div class="modal banxin">
    <transition name="fade">
      <div class="alent" v-show="modal.isLoginMsg">
        <i :class="['iconfont', modal.icon]"></i>
        <p>{{ modal.LogMsg }}</p>
      </div>
    </transition>
  </div>
</template>

<script>
import { mapState } from "vuex";
export default {
  data() {
    return {};
  },
  computed: {
    ...mapState(["modal"]),
  },
};
</script>
 
<style lang = "less" scoped>
.modal {
  width: 600px;

  position: relative;
  text-align: center;
  /* padding: 10px 20px; */
  box-sizing: border-box;

  .alent {
    padding: 10px 20px;
    display: flex;
    background-color: rgb(239, 234, 234);
    position: absolute;
    top: 50px;
    left: 40%;
    border-radius: 10px;
    box-shadow: 0 0 0 5px #ccc;
    z-index: 1;
    margin: auto;
  }
}
.fade-enter-active,
.fade-leave-active {
  transition: opacity 2s;
}
.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
  opacity: 0;
}
</style>